package com.yf.thumbbackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yf.thumbbackend.entity.Blog;
import com.yf.thumbbackend.entity.vo.BlogVO;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author echo-sp
* @description 针对表【blog】的数据库操作Service
* @createDate 2025-04-18 20:27:12
*/
public interface BlogService extends IService<Blog> {

    /**
     * 根据id获取博客信息
     * @param id
     * @param request
     * @return
     */
    BlogVO getBlogById(Long id, HttpServletRequest request);

    /**
     * 获取blogList
     * @param list 实体类
     * @param request 请求
     * @return blogVO列表
     */

    List<BlogVO> getBlogVoList(List<Blog> list, HttpServletRequest request);



}
